package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.SettlementSituation;
import com.tiancheng.trade.settlement.vo.settlement.export.DiffOrderExportVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 清分情况
 */
@Repository
public interface SettlementSituationMapper extends TYBaseMapper<SettlementSituation> {

    /**
     * 生成清分情况报表
     *
     * @param reportTime 格式如202405
     * @return
     */
    int insertBatch(@Param("reportTime") String reportTime);

    /**
     * 更新清分情况报表
     *
     * @param reportTime 格式如202405
     * @return
     */
    int updateBatch(@Param("reportTime") String reportTime);

    /**
     * 删除清分情况报表
     *
     * @param reportTime 格式如202405
     * @return
     */
    int deleteSituation(@Param("reportTime") String reportTime);

    /**
     * 差额订单导出
     *
     * @param reportTime
     * @return
     */
    List<DiffOrderExportVO> diffOrderExport(@Param("reportTime") String reportTime);
}
